using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
namespace NewFormatProject.Server.Instances.Extends.Requests
{
	public static class EntitySysUsersExtend
{
		public static SysUsers ToEntity(this RequestSysUsersDto dto)
		{
			return new SysUsers
			{
				UId = dto.id,
				UName = dto.name,
				UAccount = dto.account,
				URole = dto.role,
				UAvatar = dto.avatar,
				UPassword = dto.password,
				UPhone = dto.phone,
				UJobId = dto.jobId,
				UIsActive = dto.isActive,
				UIsBan = dto.isBan,
			};
		}
	}
}
